﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.SmartStorPro.Domain
{
    /// <summary>
    /// 产品表
    /// </summary>
    public class Products
    {
        /// <summary>
        /// 产品ID--主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int ProductID { get; set; }
        /// <summary>
        /// 产品编号
        /// </summary>
        /// 
        [MaxLength(50)]
        public string ProductCode {  get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        /// 
        [MaxLength(50)]
        public string ProductName { get; set; }
        /// <summary>
        /// 规格
        /// </summary>
        /// 
        [MaxLength(50)]
        public string Specification { get; set; }
        /// <summary>
        /// 产品批次
        /// </summary>
        /// 
        [MaxLength(50)]
        public string BatchNumber { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int Quantity { get; set; }
        /// <summary>
        /// 库存
        /// </summary>
        public int Stock { get; set; }
        /// <summary>
        /// 供应商ID-外键
        /// </summary>
        public int Supplierld { get; set; }
        /// <summary>
        /// 制单人ID-外键
        /// </summary>
        public int CreatorUserld { get; set; }
       
        /// <summary>
        /// 审核人ID--外键
        /// </summary>
        public int AuditorUserld { get; set; }
        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime AuditTime { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public string Status { get; set; }
        /// <summary>
        /// 是否删除(1-删除 0正常)
        /// </summary>
        public bool IsDelete { get; set; }

    }
}
